/**
 * 显示或隐藏遮蔽层
 */

export default function changeJudgeColorDom(state, { that }) {
  // 显示或隐藏遮蔽层
  state.judgeColorDom = !state.judgeColorDom;
  if (state.judgeColorDom) {
    // 清空遮蔽层位置大小属性
    that.$set(state, "colorDomStyle", {
      width: "", //width-content
      height: "",
      top: "",
      left: "",
      padding: "",
      border: "",
      margin: "",
    });
    // 清空目标属性，重新选择
    state.aimAttrs = {};
  }
}
